/*************************************************************
 * File: SerialNumberGeneratorUsingTimeStamp.java
 * Copyright (c) 2012
 * Author: Shaobin.Software@gmail.com Shaobin_Software@163.com 
 * Date: Jan 16, 2013
 * Description: 
 ************************************************************/
package snow.core.toolkit.generator;

import snow.core.toolkit.StringHelper;

/**
 * 使用时间戳+3位随机码生产的序列号
 */
public class SerialNumberGeneratorUsingTimeStamp implements SerialNumberGenerator {

	/**
	 * @return
	 * @see snow.core.toolkit.generator.SerialNumberGenerator#generateSerialNumber()
	 */
	public String generateSerialNumber() {
		return StringHelper.getLineTimeStamp() + StringHelper.getRandomNumber();
	}

}
